import request from '@/utils/request'

export function getAll(param) {
  return request({
    url: '/wMSStock/GetAll',
    method: 'get',
    params: param
  })
}

export function list(param) {
  return request({
    url: '/wMSStock/list',
    method: 'get',
    params: param
  })
}

export function create(param) {
  return request({
    url: '/wMSStock/save',
    method: 'post',
    data: param
  })
}

export function update(param) {
  return request({
    url: '/wMSStock/save',
    method: 'post',
    data:param
  })
}
export function deleteBatch(param) {
  debugger
  let url ='/wMSStock/deleteBatch'
  return request({
    url: url,
    method: 'delete',
    data: param
  })
}
export function getStockMaterials(param) {
  return request({
    url: '/wMSStock/getStockMaterials',
    method: 'get',
    params: param
  })
}


